/* util */
import http from '@src/util/http'
/* model */
import { WorkWeixinSignResult } from '@model/param/out/WX'

/**
 * @description 企业微信签名
 * @param {Object} params - 参数
 * @param {String} params params.url - 签名的链接
 */
export function workWechatSign(params: { url: string }): Promise<WorkWeixinSignResult> {
  return http.post('/dd/qywx/api/js/getSign', params)
}

/**
 * @description 企业微信id 转换为系统内userid
 */
export function weChatIdConvert2UserId(params: { userIdList: [] }) {
  return http.post('/security/user/convertId', params)
}
